package cn.gjxblog.other;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.Test;
import sun.security.provider.MD5;

/**
 * 作用:
 * 作者:gjx
 * 版本:V1.0
 * 创建时间: 2018/7/25 21:50
 */
public class MD5Util {

    @Test
    public void test(){
        Md5Hash md5Hash = new Md5Hash("123456");
        System.out.println(md5Hash);
    }


    @Test
    public void test2(){
        Md5Hash md5Hash = new Md5Hash("123456"+"ABCD");
        System.out.println(md5Hash);
    }

    @Test
    public void test3(){
        Md5Hash md5Hash = new Md5Hash("ABCD123456");
        System.out.println(md5Hash);
    }

    @Test
    public void test4(){
        Md5Hash md5Hash = new Md5Hash("123456","ABCD",1024);
        System.out.println(md5Hash);
    }


}
